import Vue from 'vue'
import axios from 'axios'
import VueAxios from 'vue-axios'
import { Message } from 'element-ui'
import qs from 'qs'
import config from './settings'
Vue.use(VueAxios, axios)

var _apiURL = config.apiURL
var _apiHost = config.apiHost
var flag = {
  swqAdd: true, // 四种券
  mjqAdd: true,
  ppqAdd: true,
  xjqAdd: true,
  dhmAdd: true, // 七种活动
  dtglAdd: true,
  mfglAdd: true,
  lqzxAdd: true,
  ddddAdd: true,
  zcfqAdd: true,
  czfqAdd: true,
  cxfyAdd: true, // 促销费用
  check: true, // 审核
  sxxAddMany: true, // 上下线
  pptcAdd: true, // 普通套餐
  yijianAdd: true, // 1+N套餐
  xsqgAdd: true, // 限时抢购
  dztzAdd: true, // 动作跳转
  mkglAdd: true, // 模块管理
  ktglAdd: true, // 款台广告
  bannerAdd: true, // banner
  kjggAdd: true, // 开机广告
  ymggAdd: true // 页面广告
} // 开关
/**
 * 封装axios的通用请求
 * @param  {string}   type      get\post\put\delete
 * @param  {string}   url       请求的接口URL
 * @param  {object}   data      传的参数，没有则传空对象
 * @param  {Function} fn        回调函数
 * @param  {string}   token     携带token参数
 * @param  {string}   host      接口host地址
 */

// 通过浏览器地址栏获取token1
var url = window.location.search
if (url.indexOf('?') !== -1) {
  var str = url.substr(1)
  var strs = str.split('=')
  window.localStorage.setItem('_token', strs[1])
}
var proxy = function (type, url, host, data, flagName, fn, port, contentType, version) {
  var headerVersion = version || ''
  var conType = contentType || ''
  var _port = ''
  if (port) {
    _port = port
  } else {
    _port = ''
  }
  if (flag[flagName] === true || flagName === '') {
    flag[flagName] = false
    var _token = window.localStorage.getItem('_token')
    var datas = {
      method: 'post',
      // url: 'http://192.168.88.172:3001/index', // yangxu
      // url: 'http://192.168.105.176:3001/index', // yangxu
      // url: 'http://192.168.104.228:3001/index', // liman
      url: 'http://192.168.100.214:3001/index', // liman
      // url: _apiHost.transmit,
      transformRequest: [function (data) {
        if (data.post_data === '') {
          data.post_data = {}
        }
        data.post_data.user__id = window.sessionStorage.getItem('_userInfo') ? JSON.parse(window.sessionStorage.getItem('_userInfo')).user_id : ''
        data.post_data.user__name = window.sessionStorage.getItem('_userInfo') ? JSON.parse(window.sessionStorage.getItem('_userInfo')).user_name : ''
        data.post_data.branch__id = window.sessionStorage.getItem('_userInfo') ? JSON.parse(window.sessionStorage.getItem('_userInfo')).branchId : ''
        return qs.stringify(data)
      }],
      data: {
        host: host,
        path: url,
        method: type,
        protocol: 'http',
        port: _port,
        header_version: headerVersion,
        contentType: conType,
        token: 'Bearer:' + _token,
        post_data: data
      }
    }
    // console.log(datas)
    axios(datas).then((res) => {
      flag[flagName] = true
      var _data = JSON.parse(res.data)
      // console.log(_data)
      fn(_data)
    }).catch((res) => {
      flag[flagName] = true
      window.localStorage.clear()
      Message({
        showClose: true,
        message: '返回错误：' + res.message,
        type: 'error'
      })
      setTimeout(() => {
        // window.location.href = 'http://newcms.huimin100.cn/'
      }, 5000)
    })
  } else {
    return
  }
}
module.exports = {
  getInfo: {
    adminInfo (data, fn) {
      proxy.call(this, 'post', _apiURL.get_adminInfo, _apiHost.newCms, data, '', fn, 20000)
    },
    per (data, fn) {
      proxy.call(this, 'post', _apiURL.get_per, _apiHost.newCms, data, '', fn, 20000)
    },
    user (data, fn) {
      proxy.call(this, 'post', _apiURL.get_user, _apiHost.newCms, data, '', fn, 20000)
      // proxy.call(this, 'post', _apiURL.get_user, _apiHost.ehr, data, '', fn)
    },
    branch (data, fn) { // 分公司
      proxy.call(this, 'post', _apiURL.branch, _apiHost.newCms, data, '', fn, 20000)
    },
    department (data, fn) { // 部门
      proxy.call(this, 'post', _apiURL.department, _apiHost.newCms, data, '', fn, 20000)
    },
    client (data, fn) {
      proxy.call(this, 'post', _apiURL.client, _apiHost.newCms, data, '', fn, 20000)
    },
    supplier (data, fn) {
      proxy.call(this, 'post', _apiURL.supplier, _apiHost.newCms, data, '', fn, 20000)
    },
    couponType (data, fn) {
      proxy.call(this, 'post', _apiURL.couponType, _apiHost.newCms, data, '', fn, 20000)
    },
    couponList (data, fn) {
      proxy.call(this, 'post', _apiURL.couponList, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
    },
    storeList (data, fn) { // 仓库
      proxy.call(this, 'post', _apiURL.storeList, _apiHost.newCms, data, '', fn, 20000)
    },
    getCate (data, fn) { // 通过pid查询品牌分类
      proxy.call(this, 'post', _apiURL.getCateByPid, _apiHost.newCms, data, '', fn, 20000)
    },
    getBrand (data, fn) { // 通过分类id查询品牌信息
      proxy.call(this, 'post', _apiURL.getBrandByCateId, _apiHost.newCms, data, '', fn, 20000)
    },
    getLabel (data, fn) { // 通过客资类型查询客户标签
      proxy.call(this, 'post', _apiURL.getLabel, _apiHost.newCms, data, '', fn, 20000)
    },
    searchProduct (data, fn) { // 通过分类id查询品牌信息
      proxy.call(this, 'post', _apiURL.searchProduct, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
    },
    upLoadBase64 (data, fn) { // 上传图片base64
      proxy.call(this, 'post', _apiURL.upLoadBase64, _apiHost.newCms, data, '', fn, 20000)
    },
    getColumns (data, fn) { // 获取导出字段
      proxy.call(this, 'post', _apiURL.getColumns, _apiHost.newCms, data, '', fn, 20000)
    }
  },
  cms: {
    // 满 减
    getBranch (data, fn) {
      proxy.call(this, 'post', _apiURL.branch, _apiHost.newCms, data, '', fn, 20000)
    },
    status (data, fn) {
      proxy.call(this, 'post', _apiURL.Status, _apiHost.newCms, data, '', fn, 20000)
    },
    // 满减列表
    fullList (data, fn) {
      proxy.call(this, 'post', _apiURL.fullQuery, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
    },
    // 满减详情
    fullDetail (data, fn) {
      proxy.call(this, 'post', _apiURL.fullDetail, _apiHost.newCms, data, '', fn, 20000)
    },
    // 商品分类
    pType (data, fn) {
      proxy.call(this, 'post', _apiURL.pType, _apiHost.newCms, data, '', fn, 20000)
    },
    // 品牌
    brand (data, fn) {
      proxy.call(this, 'post', _apiURL.brand, _apiHost.newCms, data, '', fn, 20000)
    },
    // 单品列表
    simple (data, fn) {
      proxy.call(this, 'post', _apiURL.simple, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
    },
    // 创建满减
    create (data, fn) {
      proxy.call(this, 'post', _apiURL.createFull, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
    },
    // 编辑
    fullEdit (data, fn) {
      proxy.call(this, 'post', _apiURL.fullEdit, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
    },
    // 审核
    fullCheck (data, fn) {
      proxy.call(this, 'post', _apiURL.fullCheck, _apiHost.newCms, data, '', fn, 20000)
    },
    // 审核不通过
    fullCheckNo (data, fn) {
      proxy.call(this, 'post', _apiURL.fullCheckNo, _apiHost.newCms, data, '', fn, 20000)
    },
    // 下线
    fullOut (data, fn) {
      proxy.call(this, 'post', _apiURL.fullOut, _apiHost.newCms, data, '', fn, 20000)
    },
    // 撤回
    fullBack (data, fn) {
      proxy.call(this, 'post', _apiURL.fullBack, _apiHost.newCms, data, '', fn, 20000)
    },
    // 删除
    fullRemove (data, fn) {
      proxy.call(this, 'post', _apiURL.fullRemove, _apiHost.newCms, data, '', fn, 20000)
    }
  },
  column: {
    hfTemplate: {
      list (data, fn) {
        proxy.call(this, 'post', _apiURL.hfTemplate_list, _apiHost.newCms, data, '', fn, 20000)
      },
      detail (data, fn) {
        proxy.call(this, 'post', _apiURL.hfTemplate_detail, _apiHost.newCms, data, '', fn, 20000)
      },
      cancel (data, fn) {
        proxy.call(this, 'post', _apiURL.hfTemplate_delete, _apiHost.newCms, data, '', fn, 20000)
      },
      creat (data, fn) {
        proxy.call(this, 'post', _apiURL.hfTemplate_creat, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      mark (data, fn) {
        proxy.call(this, 'post', _apiURL.hfTemplate_mark, _apiHost.newCms, data, '', fn, 20000)
      }
    },
    hfgl: {
      list (data, fn) {
        proxy.call(this, 'post', _apiURL.hf_list, _apiHost.newCms, data, '', fn, 20000)
      },
      detail (data, fn) {
        proxy.call(this, 'post', _apiURL.hf_detail, _apiHost.newCms, data, '', fn, 20000)
      },
      cancel (data, fn) {
        proxy.call(this, 'post', _apiURL.hf_delete, _apiHost.newCms, data, '', fn, 20000)
      },
      create (data, fn) {
        proxy.call(this, 'post', _apiURL.hf_creat, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      check (data, fn) {
        proxy.call(this, 'post', _apiURL.hf_check, _apiHost.newCms, data, '', fn, 20000)
      }
    },
    template: {
      list (data, fn) {
        proxy.call(this, 'post', _apiURL.template_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      edit (data, fn) {
        proxy.call(this, 'post', _apiURL.template_edit, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      create (data, fn) {
        proxy.call(this, 'post', _apiURL.template_add, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      cancel (data, fn) {
        proxy.call(this, 'post', _apiURL.template_delete, _apiHost.newCms, data, '', fn, 20000)
      },
      detail (data, fn) {
        proxy.call(this, 'post', _apiURL.template_detail, _apiHost.newCms, data, '', fn, 20000)
      },
      himId (data, fn) {
        proxy.call(this, 'post', _apiURL.template_id, _apiHost.newCms, data, '', fn, 20000)
      }
    },
    view: {
      list (data, fn) {
        proxy.call(this, 'post', _apiURL.view_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      edit (data, fn) {
        proxy.call(this, 'post', _apiURL.view_edit, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      create (data, fn) {
        proxy.call(this, 'post', _apiURL.view_add, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      cancel (data, fn) {
        proxy.call(this, 'post', _apiURL.view_delete, _apiHost.newCms, data, '', fn, 20000)
      },
      detail (data, fn) {
        proxy.call(this, 'post', _apiURL.view_detail, _apiHost.newCms, data, '', fn, 20000)
      },
      id (data, fn) {
        proxy.call(this, 'post', _apiURL.view_id, _apiHost.newCms, data, '', fn, 20000)
      }
    },
    content: {
      list (data, fn) {
        proxy.call(this, 'post', _apiURL.content_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      lotCheck (data, fn) {
        proxy.call(this, 'post', _apiURL.content_lotCheck, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      edit (data, fn) {
        proxy.call(this, 'post', _apiURL.content_edit, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      create (data, fn) {
        proxy.call(this, 'post', _apiURL.content_add, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      cancel (data, fn) {
        proxy.call(this, 'post', _apiURL.content_delete, _apiHost.newCms, data, '', fn, 20000)
      },
      detail (data, fn) {
        proxy.call(this, 'post', _apiURL.content_detail, _apiHost.newCms, data, '', fn, 20000)
      },
      simple (data, fn) {
        proxy.call(this, 'post', _apiURL.content_simple, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      offLine (data, fn) {
        proxy.call(this, 'post', _apiURL.content_offLine, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      approve (data, fn) {
        proxy.call(this, 'post', _apiURL.content_approve, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      noApprove (data, fn) {
        proxy.call(this, 'post', _apiURL.content_noApprove, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      revoke (data, fn) {
        proxy.call(this, 'post', _apiURL.content_revoke, _apiHost.newCms, data, '', fn, 20000)
      },
      checkList (data, fn) {
        proxy.call(this, 'post', _apiURL.content_checkList, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      view (data, fn) {
        proxy.call(this, 'post', _apiURL.content_view, _apiHost.newCms, data, '', fn, 20000)
      }
    },
    modules: {
      lotCheck (data, fn) {  // 批量审核
        proxy.call(this, 'post', _apiURL.module_lotCheck, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      sortList (data, fn) { // 查询排序数据
        proxy.call(this, 'post', _apiURL.module_sortData, _apiHost.newCms, data, '', fn, 20000)
      },
      updateSort (data, fn) { // 更新排序数据
        proxy.call(this, 'post', _apiURL.module_updateSort, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      viewList (data, fn) { // 页面下拉框
        proxy.call(this, 'post', _apiURL.module_viewList, _apiHost.newCms, data, '', fn, 20000)
      },
      temList (data, fn) {  // 选择模板
        proxy.call(this, 'post', _apiURL.module_tem, _apiHost.newCms, data, '', fn, 20000)
      },
      ggList (data, fn) {   // 关联广告分页
        proxy.call(this, 'post', _apiURL.module_guanggao, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      ggDetail (data, fn) {   // 关联广告详情
        proxy.call(this, 'post', _apiURL.module_ggDetail, _apiHost.newCms, data, '', fn, 20000)
      },
      nrList (data, fn) {   // 关联内容分页
        proxy.call(this, 'post', _apiURL.module_neirong, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      hdList (data, fn) {   // 关联活动分页
        proxy.call(this, 'post', _apiURL.module_huodong, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      list (data, fn) {    // 分页
        proxy.call(this, 'post', _apiURL.module_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      create (data, fn) {  // 创建
        proxy.call(this, 'post', _apiURL.module_add, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      edit (data, fn) {    // 编辑
        proxy.call(this, 'post', _apiURL.module_edit, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      cancel (data, fn) {  // 删除
        proxy.call(this, 'post', _apiURL.module_delete, _apiHost.newCms, data, '', fn, 20000)
      },
      detail (data, fn) {  // 详情
        proxy.call(this, 'post', _apiURL.module_detail, _apiHost.newCms, data, '', fn, 20000)
      },
      revoke (data, fn) {  // 撤销
        proxy.call(this, 'post', _apiURL.module_revoke, _apiHost.newCms, data, '', fn, 20000)
      },
      check (data, fn) {  // 审核通过
        proxy.call(this, 'post', _apiURL.module_check, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      noCheck (data, fn) {  // 审核不通过
        proxy.call(this, 'post', _apiURL.module_NoCheck, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      offLine (data, fn) { // 下线
        proxy.call(this, 'post', _apiURL.module_offLine, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      checkList (data, fn) { // 待审核分页数据查询
        proxy.call(this, 'post', _apiURL.module_checkList, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      }
    }
  },
  activity: {
    yhqhd: {
      dhm: { // 兑换码
        list (data, fn) { // 兑换码列表
          proxy.call(this, 'post', _apiURL.coupont_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        add (data, fn) { // 兑换码新增
          proxy.call(this, 'post', _apiURL.coupont_add, _apiHost.newCms, data, 'dhmAdd', fn, 20000, 'application/json;charset=UTF-8')
        },
        delete (data, fn) { // 兑换码删除
          proxy.call(this, 'post', _apiURL.coupont_delete, _apiHost.newCms, data, '', fn, 20000)
        },
        cancel (data, fn) { // 兑换码作废
          proxy.call(this, 'post', _apiURL.coupont_cancel, _apiHost.newCms, data, '', fn, 20000)
        },
        invoke (data, fn) { // 兑换码撤回
          proxy.call(this, 'post', _apiURL.coupont_invoke, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        detail (data, fn) { // 兑换码详情
          proxy.call(this, 'post', _apiURL.coupont_detail, _apiHost.newCms, data, '', fn, 20000)
        },
        create (data, fn) { // 兑换码创建
          proxy.call(this, 'post', _apiURL.coupont_create, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        update (data, fn) { // 兑换码编辑
          proxy.call(this, 'post', _apiURL.coupont_update, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        }
      },
      jcq: {
        ppq_list (data, fn) {
          proxy.call(this, 'post', _apiURL.ppq_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        ppq_creation (data, fn) {
          proxy.call(this, 'post', _apiURL.ppq_creation, _apiHost.newCms, data, 'ppqAdd', fn, 20000, 'application/json;charset=UTF-8')
        },
        ppq_detail (data, fn) {
          proxy.call(this, 'post', _apiURL.ppq_detail, _apiHost.newCms, data, '', fn, 20000)
        },
        ppq_upload (data, fn) {
          proxy.call(this, 'post', _apiURL.ppq_upload, _apiHost.newCms, data, '', fn, 20000)
        },
        ppq_productList (data, fn) {
          proxy.call(this, 'post', _apiURL.ppq_productList, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        xjq_list (data, fn) {
          proxy.call(this, 'post', _apiURL.xjq_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        xjq_creation (data, fn) {
          proxy.call(this, 'post', _apiURL.xjq_creation, _apiHost.newCms, data, 'xjqAdd', fn, 20000, 'application/json;charset=UTF-8')
        },
        xjq_detail (data, fn) {
          proxy.call(this, 'post', _apiURL.xjq_detail, _apiHost.newCms, data, '', fn, 20000)
        },
        swq_list (data, fn) {
          proxy.call(this, 'post', _apiURL.swq_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        swq_creation (data, fn) {
          proxy.call(this, 'post', _apiURL.swq_creation, _apiHost.newCms, data, 'swqAdd', fn, 20000, 'application/json;charset=UTF-8')
        },
        swq_detail (data, fn) {
          proxy.call(this, 'post', _apiURL.swq_detail, _apiHost.newCms, data, '', fn, 20000)
        },
        mjq_list (data, fn) {
          proxy.call(this, 'post', _apiURL.mjq_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        mjq_creation (data, fn) {
          proxy.call(this, 'post', _apiURL.mjq_creation, _apiHost.newCms, data, 'mjqAdd', fn, 20000, 'application/json;charset=UTF-8')
        },
        mjq_detail (data, fn) {
          proxy.call(this, 'post', _apiURL.mjq_detail, _apiHost.newCms, data, '', fn, 20000)
        },
        plq_list (data, fn) {
          proxy.call(this, 'post', _apiURL.plq_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        plq_creation (data, fn) {
          proxy.call(this, 'post', _apiURL.plq_creation, _apiHost.newCms, data, 'mjqAdd', fn, 20000, 'application/json;charset=UTF-8')
        },
        plq_detail (data, fn) {
          proxy.call(this, 'post', _apiURL.plq_detail, _apiHost.newCms, data, '', fn, 20000)
        }
      },
      dtgl: { // 定投
        list (data, fn) { // 定投列表
          proxy.call(this, 'post', _apiURL.timeingOn_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        create (data, fn) { // 定投新增 || 保存
          proxy.call(this, 'post', _apiURL.timeingOn_create, _apiHost.newCms, data, 'dtglAdd', fn, 20000, 'application/json;charset=UTF-8')
        },
        cancel (data, fn) { // 作废
          proxy.call(this, 'post', _apiURL.timeingOn_cancel, _apiHost.newCms, data, '', fn, 20000)
        },
        delete (data, fn) { // 删除
          proxy.call(this, 'post', _apiURL.timeingOn_delete, _apiHost.newCms, data, '', fn, 20000)
        },
        invoke (data, fn) { // 撤回
          proxy.call(this, 'post', _apiURL.timeingOn_invoke, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        sendTicket (data, fn) { // 发券
          proxy.call(this, 'post', _apiURL.timeingOn_sendTicket, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        update (data, fn) { // 编辑
          proxy.call(this, 'post', _apiURL.timeingOn_update, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        detail (data, fn) { // 详情
          proxy.call(this, 'post', _apiURL.timeingOn_detail, _apiHost.newCms, data, '', fn, 20000)
        },
        sendDetail (data, fn) { // 详情
          proxy.call(this, 'post', _apiURL.timeingOn_sendDetail, _apiHost.newCms, data, '', fn, 20000)
        },
        export (data, fn) { // 导出
          proxy.call(this, 'post', _apiURL.timeingOn_export, _apiHost.newCms, data, '', fn, 20000, 'application/x-www-form-urlencoded')
        }
      },
      mfgl: { // 满返管理
        list (data, fn) { // 列表
          proxy.call(this, 'post', _apiURL.fullReturn_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        create (data, fn) { // 创建
          proxy.call(this, 'post', _apiURL.fullReturn_create, _apiHost.newCms, data, 'mfglAdd', fn, 20000, 'application/json;charset=UTF-8')
        },
        update (data, fn) { // 编辑
          proxy.call(this, 'post', _apiURL.fullReturn_update, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        cancel (data, fn) { // 作废
          proxy.call(this, 'post', _apiURL.fullReturn_cancel, _apiHost.newCms, data, '', fn, 20000)
        },
        delete (data, fn) { // 删除
          proxy.call(this, 'post', _apiURL.fullReturn_delete, _apiHost.newCms, data, '', fn, 20000)
        },
        invoke (data, fn) { // 撤回
          proxy.call(this, 'post', _apiURL.fullReturn_invoke, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        detail (data, fn) { // 详情
          proxy.call(this, 'post', _apiURL.fullReturn_detail, _apiHost.newCms, data, '', fn, 20000)
        }
      },
      lqzx: { // 领券中心
        list (data, fn) { // 列表
          proxy.call(this, 'post', _apiURL.ticketCenter_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        create (data, fn) { // 新增
          proxy.call(this, 'post', _apiURL.ticketCenter_create, _apiHost.newCms, data, 'lqzxAdd', fn, 20000, 'application/json;charset=UTF-8')
        },
        update (data, fn) { // 编辑
          proxy.call(this, 'post', _apiURL.ticketCenter_update, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        cancel (data, fn) { // 作废
          proxy.call(this, 'post', _apiURL.ticketCenter_cancel, _apiHost.newCms, data, '', fn, 20000)
        },
        delete (data, fn) { // 删除
          proxy.call(this, 'post', _apiURL.ticketCenter_delete, _apiHost.newCms, data, '', fn, 20000)
        },
        invoke (data, fn) { // 撤回
          proxy.call(this, 'post', _apiURL.ticketCenter_invoke, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        detail (data, fn) { // 详情
          proxy.call(this, 'post', _apiURL.ticketCenter_detail, _apiHost.newCms, data, '', fn, 20000)
        }
      },
      dddd: { // 多订多得
        list (data, fn) { // 列表
          proxy.call(this, 'post', _apiURL.dddd_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        create (data, fn) { // 新增
          proxy.call(this, 'post', _apiURL.dddd_create, _apiHost.newCms, data, 'ddddAdd', fn, 20000, 'application/json;charset=UTF-8')
        },
        update (data, fn) { // 编辑
          proxy.call(this, 'post', _apiURL.dddd_update, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        cancel (data, fn) { // 作废
          proxy.call(this, 'post', _apiURL.dddd_cancel, _apiHost.newCms, data, '', fn, 20000)
        },
        delete (data, fn) { // 删除
          proxy.call(this, 'post', _apiURL.dddd_delete, _apiHost.newCms, data, '', fn, 20000)
        },
        invoke (data, fn) { // 撤回
          proxy.call(this, 'post', _apiURL.dddd_invoke, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        detail (data, fn) { // 详情
          proxy.call(this, 'post', _apiURL.dddd_detail, _apiHost.newCms, data, '', fn, 20000)
        }
      },
      zcfq: { // 注册返券
        list (data, fn) { // 列表
          proxy.call(this, 'post', _apiURL.zcfq_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        create (data, fn) { // 新增 || 保存
          proxy.call(this, 'post', _apiURL.zcfq_add, _apiHost.newCms, data, 'zcfqAdd', fn, 20000, 'application/json;charset=UTF-8')
        },
        cancel (data, fn) { // 作废
          proxy.call(this, 'post', _apiURL.zcfq_cancel, _apiHost.newCms, data, '', fn, 20000)
        },
        delete (data, fn) { // 删除
          proxy.call(this, 'post', _apiURL.zcfq_delete, _apiHost.newCms, data, '', fn, 20000)
        },
        invoke (data, fn) { // 撤回
          proxy.call(this, 'post', _apiURL.zcfq_back, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        update (data, fn) { // 编辑
          proxy.call(this, 'post', _apiURL.zcfq_edit, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        detail (data, fn) { // 详情
          proxy.call(this, 'post', _apiURL.zcfq_detail, _apiHost.newCms, data, '', fn, 20000)
        }
      },
      czfq: { // 充值返券
        list (data, fn) {
          proxy.call(this, 'post', _apiURL.czfq_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        create (data, fn) { // 定投新增 || 保存
          proxy.call(this, 'post', _apiURL.czfq_add, _apiHost.newCms, data, 'czfqAdd', fn, 20000, 'application/json;charset=UTF-8')
        },
        cancel (data, fn) { // 作废
          proxy.call(this, 'post', _apiURL.czfq_cancel, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        delete (data, fn) { // 删除
          proxy.call(this, 'post', _apiURL.czfq_delete, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        invoke (data, fn) { // 撤回
          proxy.call(this, 'post', _apiURL.czfq_back, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        update (data, fn) { // 编辑
          proxy.call(this, 'post', _apiURL.czfq_edit, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        detail (data, fn) { // 详情
          proxy.call(this, 'post', _apiURL.czfq_detail, _apiHost.newCms, data, '', fn, 20000)
        }
      }
    },
    cxfy: { // 促销费用
      list (data, fn) { // 列表
        proxy.call(this, 'post', _apiURL.cx_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      creation (data, fn) { // 创建
        proxy.call(this, 'post', _apiURL.cx_creation, _apiHost.newCms, data, 'cxfyAdd', fn, 20000, 'application/json;charset=UTF-8')
      },
      detail (data, fn) { // 列表
        proxy.call(this, 'post', _apiURL.cx_detail, _apiHost.newCms, data, '', fn, 20000)
      },
      edit (data, fn) { // 列表
        proxy.call(this, 'post', _apiURL.cx_edit, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      delete (data, fn) { // 列表
        proxy.call(this, 'post', _apiURL.cx_delete, _apiHost.newCms, data, '', fn, 20000)
      },
      allList (data, fn) { // 所有列表
        proxy.call(this, 'post', _apiURL.cx_allList, _apiHost.newCms, data, '', fn, 20000)
      }
    },
    hdsh: {
      yhqhdsh: {
        list (data, fn) {
          proxy.call(this, 'post', _apiURL.yhqhd_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        check (data, fn) {
          proxy.call(this, 'post', _apiURL.yhqhd_check, _apiHost.newCms, data, 'check', fn, 20000, 'application/json;charset=UTF-8')
        }
      }
    },
    sphd: { // 商品活动
      list (data, fn) { // 商品活动查询list公共方法
        proxy.call(this, 'post', _apiURL.goodsSet_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      detail (data, fn) { // 商品活动详情公共方法
        proxy.call(this, 'post', _apiURL.goodsSet_detail, _apiHost.newCms, data, '', fn, 20000)
      },
      handle (data, fn) { // 更改活动状态公共方法
        proxy.call(this, 'post', _apiURL.goodsSet_handle, _apiHost.newCms, data, '', fn, 20000)
      },
      setSort (data, fn) { // 更改活动状态公共方法
        proxy.call(this, 'post', _apiURL.goodsSet_setSort, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      tc: { // 套餐
        pttc: { // 普通套餐
          create (data, fn) { // 创建
            proxy.call(this, 'post', _apiURL.goodsSet_fixedCreate, _apiHost.newCms, data, 'pptcAdd', fn, 20000, 'application/json;charset=UTF-8')
          },
          update (data, fn) { // 编辑
            proxy.call(this, 'post', _apiURL.goodsSet_fixedUpdate, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
          }
        },
        yijian: { // 1+N 套餐
          create (data, fn) { // 创建
            proxy.call(this, 'post', _apiURL.goodsSet_combinationCreate, _apiHost.newCms, data, 'yijianAdd', fn, 20000, 'application/json;charset=UTF-8')
          },
          update (data, fn) { // 编辑
            proxy.call(this, 'post', _apiURL.goodsSet_combinationUpdate, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
          }
        }
      },
      xsqg: { // 限时抢购
        create (data, fn) { // 创建
          proxy.call(this, 'post', _apiURL.goodsSet_timeBuyCreate, _apiHost.newCms, data, 'xsqgAdd', fn, 20000, 'application/json;charset=UTF-8')
        },
        update (data, fn) { // 编辑
          proxy.call(this, 'post', _apiURL.goodsSet_timeBuyUpdate, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        getTime (data, fn) { // 获取场次
          proxy.call(this, 'post', _apiURL.goodsSet_findPackageTimeList, _apiHost.newCms, data, '', fn, 20000)
        },
        setTime (data, fn) { // 获取场次
          proxy.call(this, 'post', _apiURL.goodsSet_setPackageTime, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        }
      },
      myj: { // 满元件
        manjian: { // 满减管理
          create (data, fn) { // 创建
            proxy.call(this, 'post', _apiURL.manjian_creat, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
          },
          edit (data, fn) { // 编辑
            proxy.call(this, 'post', _apiURL.manjian_edit, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
          },
          upload (data, fn) { // 上传
            proxy.call(this, 'post', _apiURL.manjian_upload, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
          },
          offline (data, fn) { // 下线
            proxy.call(this, 'post', _apiURL.manjian_off, _apiHost.newCms, data, '', fn, 20000)
          }
        },
        manzeng: { // 满赠管理
          create (data, fn) { // 创建
            proxy.call(this, 'post', _apiURL.manzeng_creat, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
          },
          edit (data, fn) { // 编辑
            proxy.call(this, 'post', _apiURL.manzeng_edit, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
          },
          test (data, fn) { // 验证商品ID
            proxy.call(this, 'post', _apiURL.manzeng_test, _apiHost.newCms, data, '', fn, 20000)
          }
        },
        jiajiagou: { // 加价购管理
          create (data, fn) { // 创建
            proxy.call(this, 'post', _apiURL.jiajiagou_creat, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
          },
          edit (data, fn) { // 编辑
            proxy.call(this, 'post', _apiURL.jiajiagou_edit, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
          },
          upload (data, fn) { // 上传
            proxy.call(this, 'post', _apiURL.manjian_upload, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
          },
          offline (data, fn) { // 下线
            proxy.call(this, 'post', _apiURL.manjian_off, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
          }
        }
      },
      dpzk: { // 单品折扣
        create (data, fn) {
          proxy.call(this, 'post', _apiURL.dpzk_add, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        update (data, fn) {
          proxy.call(this, 'post', _apiURL.dpzk_up, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        }
      }
    }
  },
  batchManage: { // 批量管理
    sppx: { // 商品排序
      list (data, fn) { // 分页查询
        proxy.call(this, 'post', _apiURL.proSort_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      test (data, fn) { // 验证
        proxy.call(this, 'post', _apiURL.proSort_testState, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      update (data, fn) { // 排序更新
        proxy.call(this, 'post', _apiURL.proSort_updateState, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      }
    },
    sxx: { // 上下线
      list (data, fn) { // 分页查询
        proxy.call(this, 'post', _apiURL.proOnline_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      proList (data, fn) { // 分页查询
        proxy.call(this, 'post', _apiURL.proOnline_ProList, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      addMany (data, fn) { // 批量添加
        proxy.call(this, 'post', _apiURL.proOnline_addMany, _apiHost.newCms, data, 'sxxAddMany', fn, 20000, 'application/json;charset=UTF-8')
      },
      updateMany (data, fn) { // 上下线
        proxy.call(this, 'post', _apiURL.proOnline_updateMany, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      }
    }
  },
  hdljpz: { // 活动链接配置
    ue: {
      // ue编辑器
      upload (data, fn) { // 图片上传
        proxy.call(this, 'post', _apiURL.activeLink_upload, _apiHost.newCms, data, '', fn, 20000)
      },
      create (data, fn) { // 生成
        proxy.call(this, 'post', _apiURL.activeLink_create, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      createQRCode (data, fn) { // 生成二维码
        proxy.call(this, 'post', _apiURL.createQRCode, _apiHost.newCms, data, '', fn, 20000)
      },
      brandList (data, fn) { // 生成分类信息
        proxy.call(this, 'post', _apiURL.activeLink_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      }
    },
    sphd: { // 商品活动创建
      list (data, fn) { // 查询
        proxy.call(this, 'post', _apiURL.productActivity_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      create (data, fn) { // 创建
        proxy.call(this, 'post', _apiURL.productActivity_create, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      update (data, fn) { // 创建
        proxy.call(this, 'post', _apiURL.productActivity_update, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      detail (data, fn) { // 详情
        proxy.call(this, 'post', _apiURL.productActivity_detail, _apiHost.newCms, data, '', fn, 20000)
      },
      getAll (data, fn) { // 查询所有活动
        proxy.call(this, 'post', _apiURL.productActivity_allActive, _apiHost.newCms, data, '', fn, 20000)
      },
      getContent (data, fn) { // 关联内容
        proxy.call(this, 'post', _apiURL.productActivity_getContent, _apiHost.newCms, data, '', fn, 20000)
      },
      auditNo (data, fn) { // 审核不通过
        proxy.call(this, 'post', _apiURL.productActivity_auditNo, _apiHost.newCms, data, '', fn, 20000)
      },
      auditOk (data, fn) { // 审核不通过
        proxy.call(this, 'post', _apiURL.productActivity_auditOk, _apiHost.newCms, data, '', fn, 20000)
      },
      audit (data, fn) { // 审核不通过
        proxy.call(this, 'post', _apiURL.productActivity_audit, _apiHost.newCms, data, '', fn, 20000)
      },
      preview (data, fn) { // 预览
        proxy.call(this, 'post', _apiURL.productActivity_previewProAc, _apiHost.newCms, data, '', fn, 20000)
      }
    }
  },
  gggl: {
    dztzgl: { // 动作跳转
      list (data, fn) { // 分页查询
        proxy.call(this, 'post', _apiURL.actionJump_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      create (data, fn) { // 创建
        proxy.call(this, 'post', _apiURL.actionJump_create, _apiHost.newCms, data, 'dztzAdd', fn, 20000, 'application/json;charset=UTF-8')
      },
      update (data, fn) { // 更新
        proxy.call(this, 'post', _apiURL.actionJump_update, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      getMarkId (data, fn) { // 获取动作标识
        proxy.call(this, 'post', _apiURL.actionJump_getMarkId, _apiHost.newCms, data, '', fn, 20000)
      },
      delete (data, fn) { // 删除 指的是页面上的作废
        proxy.call(this, 'post', _apiURL.actionJump_delete, _apiHost.newCms, data, '', fn, 20000)
      },
      detail (data, fn) { // 详情
        proxy.call(this, 'post', _apiURL.actionJump_detail, _apiHost.newCms, data, '', fn, 20000)
      }
    },
    mkgl: { // 模块管理
      list (data, fn) { // 分页查询
        proxy.call(this, 'post', _apiURL.admoudle_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      create (data, fn) { // 创建
        proxy.call(this, 'post', _apiURL.admoudle_create, _apiHost.newCms, data, 'mkglAdd', fn, 20000, 'application/json;charset=UTF-8')
      },
      detail (data, fn) { // 详情
        proxy.call(this, 'post', _apiURL.admoudle_detail, _apiHost.newCms, data, '', fn, 20000)
      },
      delete (data, fn) { // 删除 指的是页面上的作废
        proxy.call(this, 'post', _apiURL.admoudle_delete, _apiHost.newCms, data, '', fn, 20000)
      },
      update (data, fn) { // 更新
        proxy.call(this, 'post', _apiURL.admoudle_update, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      getMarkId (data, fn) { // 获取动作标识
        proxy.call(this, 'post', _apiURL.admoudle_getMarkId, _apiHost.newCms, data, '', fn, 20000)
      }
    },
    ktgl: { // 款台系统管理
      list (data, fn) { // 分页查询
        proxy.call(this, 'post', _apiURL.kuantaiAd_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      create (data, fn) { // 创建
        proxy.call(this, 'post', _apiURL.kuantaiAd_create, _apiHost.newCms, data, 'ktglAdd', fn, 20000, 'application/json;charset=UTF-8')
      },
      update (data, fn) { // 编辑
        proxy.call(this, 'post', _apiURL.kuantaiAd_update, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      detail (data, fn) { // 详情
        proxy.call(this, 'post', _apiURL.kuantaiAd_detail, _apiHost.newCms, data, '', fn, 20000)
      },
      offLine (data, fn) { // 下线
        proxy.call(this, 'post', _apiURL.kuantaiAd_offLine, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      delete (data, fn) { // 作废
        proxy.call(this, 'post', _apiURL.kuantaiAd_delete, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      revoke (data, fn) { // 撤回
        proxy.call(this, 'post', _apiURL.kuantaiAd_revoke, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      updateAudit (data, fn) { // 审核
        proxy.call(this, 'post', _apiURL.kuantaiAd_updateAudit, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      }
    },
    dhxtgg: {
      banner: {
        list (data, fn) { // 分页查询
          proxy.call(this, 'post', _apiURL.banner_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        create (data, fn) { // 创建
          proxy.call(this, 'post', _apiURL.banner_create, _apiHost.newCms, data, 'bannerAdd', fn, 20000, 'application/json;charset=UTF-8')
        },
        update (data, fn) { // 编辑
          proxy.call(this, 'post', _apiURL.banner_update, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        detail (data, fn) { // 详情
          proxy.call(this, 'post', _apiURL.banner_detail, _apiHost.newCms, data, '', fn, 20000)
        },
        offLine (data, fn) { // 下线
          proxy.call(this, 'post', _apiURL.banner_offLine, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        delete (data, fn) { // 作废
          proxy.call(this, 'post', _apiURL.banner_delete, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        revoke (data, fn) { // 撤回
          proxy.call(this, 'post', _apiURL.banner_revoke, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        updateAudit (data, fn) { // 审核
          proxy.call(this, 'post', _apiURL.banner_updateAudit, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        sortEdit (data, fn) { // 排序
          proxy.call(this, 'post', _apiURL.banner_sortEdit, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        getAct (data, fn) { // 关联活动
          proxy.call(this, 'post', _apiURL.banner_findActivity, _apiHost.newCms, data, '', fn, 20000)
        }
      },
      ymgg: {
        list (data, fn) { // 分页查询
          proxy.call(this, 'post', _apiURL.bannerPage_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        create (data, fn) { // 创建
          proxy.call(this, 'post', _apiURL.bannerPage_create, _apiHost.newCms, data, 'ymggAdd', fn, 20000, 'application/json;charset=UTF-8')
        },
        update (data, fn) { // 编辑
          proxy.call(this, 'post', _apiURL.bannerPage_update, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        detail (data, fn) { // 详情
          proxy.call(this, 'post', _apiURL.bannerPage_detail, _apiHost.newCms, data, '', fn, 20000)
        },
        offLine (data, fn) { // 下线
          proxy.call(this, 'post', _apiURL.bannerPage_offLine, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        invoke (data, fn) { // 作废
          proxy.call(this, 'post', _apiURL.bannerPage_invoke, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        revoke (data, fn) { // 撤回
          proxy.call(this, 'post', _apiURL.bannerPage_revoke, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        deletes (data, fn) { // 删除
          proxy.call(this, 'post', _apiURL.bannerPage_delete, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        updateAudit (data, fn) { // 审核
          proxy.call(this, 'post', _apiURL.bannerPage_updateAudit, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        }
      },
      kjgg: {
        list (data, fn) { // 分页查询
          proxy.call(this, 'post', _apiURL.openAd_list, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        create (data, fn) { // 创建
          proxy.call(this, 'post', _apiURL.openAd_create, _apiHost.newCms, data, 'kjggAdd', fn, 20000, 'application/json;charset=UTF-8')
        },
        update (data, fn) { // 编辑
          proxy.call(this, 'post', _apiURL.openAd_update, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        detail (data, fn) { // 详情
          proxy.call(this, 'post', _apiURL.openAd_detail, _apiHost.newCms, data, '', fn, 20000)
        },
        offLine (data, fn) { // 下线
          proxy.call(this, 'post', _apiURL.openAd_offLine, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        delete (data, fn) { // 作废
          proxy.call(this, 'post', _apiURL.openAd_delete, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        revoke (data, fn) { // 撤回
          proxy.call(this, 'post', _apiURL.openAd_revoke, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        },
        updateAudit (data, fn) { // 审核
          proxy.call(this, 'post', _apiURL.openAd_updateAudit, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
        }
      }
    }
  },
  gzt: {
    gonggaogl: {
      list (data, fn) { // 查询
        proxy.call(this, 'post', _apiURL.announcement_list, _apiHost.newCms, data, '', fn, 20000)
      },
      list2 (data, fn) { // 首页查询
        proxy.call(this, 'post', _apiURL.announcement_list2, _apiHost.newCms, data, '', fn, 20000)
      },
      add (data, fn) { // 新增
        proxy.call(this, 'post', _apiURL.announcement_create, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
      },
      detail (data, fn) { // 详情
        proxy.call(this, 'post', _apiURL.findByAnnounceId, _apiHost.newCms, data, '', fn, 20000)
      },
      invalid (data, fn) { // 作废
        proxy.call(this, 'post', _apiURL.invalid, _apiHost.newCms, data, '', fn, 20000)
      }
    }
  },
  czrz: {
    list (data, fn) { // 功能列表
      proxy.call(this, 'post', _apiURL.caozuoList, _apiHost.newCms, data, '', fn, 20000)
    },
    query (data, fn) { // 分页
      proxy.call(this, 'post', _apiURL.caozuoQuery, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
    }
  },
  sslmrc: {
    edit (data, fn) { // 修改
      proxy.call(this, 'post', _apiURL.sslmrc_edit, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
    },
    query (data, fn) { // 分页
      proxy.call(this, 'post', _apiURL.sslmrc_query, _apiHost.newCms, data, '', fn, 20000)
    }
  },
  rcwh: {
    edit (data, fn) { // 修改
      proxy.call(this, 'post', _apiURL.rcwh_edit, _apiHost.newCms, data, '', fn, 20000, 'application/json;charset=UTF-8')
    },
    query (data, fn) { // 分页
      proxy.call(this, 'post', _apiURL.rcwh_query, _apiHost.newCms, data, '', fn, 20000)
    }
  },
  scgl: {
    oneLevel (data, fn) { // 一级分类
      proxy.call(this, 'post', _apiURL.scgl_oneLevel, _apiHost.newCms, data, '', fn, 20000)
    },
    twoLevel (data, fn) { // 二级分类
      proxy.call(this, 'post', _apiURL.scgl_twoLevel, _apiHost.newCms, data, '', fn, 20000)
    }
  }
}
